package cn.lotusnut.dynamicscheduled.service.impl;

import cn.lotusnut.dynamicscheduled.entity.task.TaskEntity;
import cn.lotusnut.dynamicscheduled.service.TaskEntityService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author JiangMing Zhou
 * @Date 2023/4/23 10:57
 * @Version 1.8
 */
@Service("taskEntityService")
public class TaskEntityServiceImpl implements TaskEntityService {
    @Override
    public List<TaskEntity> selectTaskEntityList() {
        return new ArrayList<TaskEntity>(){{
            add(new TaskEntity("1","0/1 * * * * ?","1","cn.lotusnut.dynamicscheduled.task.DemoTask","task1"));
            add(new TaskEntity("2","0/1 * * * * ?","1","cn.lotusnut.dynamicscheduled.task.DemoTask","task2"));
        }};
    }
}
